﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CinemaNetwork.Models.SessionByFilmAndCinema>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ViewSession
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Сеансы </h2>

   <table width='900px'>
        <tr>
            <th>
                Зал
            </th>
            <th>
                Время и дата
            </th>
            <th>
                Цена
            </th>
              
         
        </tr>
    <% foreach (var item in Model) { %>
        <tr>
            <td>
               <%= Html.ActionLink(item.Name, "ViewReservation", "Home", new { item.sessionId }, null)%>
            </td>
            <td>
                <%= Html.Encode(item.Time) %>
            </td>
            <td>
               <%= Html.Encode(item.Cost) %> рублей
            </td>
     
        </tr>
    <% } %>
    </table>

  

</asp:Content>

